package com.aloha.springframework.aop.aspectj;

/**
 * @author DaiZhiHeng
 * @description 从容器中获取
 * @date 2023/8/2 22:38
 */
public class SingletonAspectInstanceFactory implements AspectInstanceFactory {

    private final Object aspectInstance;

    public SingletonAspectInstanceFactory(Object aspectInstance) {
        this.aspectInstance = aspectInstance;
    }

    @Override
    public Object getAspectInstance() {
        return aspectInstance;
    }
}
